import React from 'react'
import { NavLink, Outlet } from 'react-router-dom'

export default function Index() {
  return (
      <div>
          <nav>
              <NavLink to={'/'}>首页</NavLink>
              <NavLink to={'/newsList'}>新闻列表</NavLink>
              <NavLink to={'/goodsList'}>商品列表</NavLink>
              <NavLink to={'/my'}>个人中心</NavLink>
          </nav>
          <Outlet/>
    </div>
  )
}
